/*
 * @Description:联系信息
 * @Author: iamsmiling
 * @Date: 2021-06-13 09:09:19
 * @LastEditTime: 2021-06-13 10:02:06
 */

import 'package:credit_business_circle/domain/local/topic/topic_entity.dart';
import 'package:credit_business_circle/domain/remote/topic/topic_log_entity.dart';
import 'package:get/get.dart';

class MyContactsController extends GetxController {
  List<TopicLogEntity> list = [
    TopicLogEntity(
        collected: true,
        date: "2021年03月16日",
        topics: [TopicEntity.fromJson({})]),
    TopicLogEntity(collected: true, date: "2021年03月16日", topics: [
      TopicEntity.fromJson({}),
      TopicEntity.fromJson({}),
      TopicEntity.fromJson({}),
      TopicEntity.fromJson({})
    ]),
    TopicLogEntity(
        collected: true,
        date: "2021年03月16日",
        topics: [TopicEntity.fromJson({})]),
    TopicLogEntity(
        collected: true,
        date: "2021年03月16日",
        topics: [TopicEntity.fromJson({})])
  ];

  void remove(TopicLogEntity log, TopicEntity topic) {
    log.topics.remove(topic);
    update();
  }
}
